﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/AdminPage.master" AutoEventWireup="true" CodeFile="TypeOfDeliver_Add.aspx.cs" Inherits="AddNewTypeOfDeliver" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<script type="text/javascript">
    function ShowMessage() {
        alert('Add new Type of deliver successful!');
        window.location.href = 'TypeOfDeliver_Management.aspx';
    }

</script>
<table class="style3" align="center" >
        <tr>
            <td colspan="3" style="background-image: url(../images/bg_head.png); height: 30px" 
                class="style3">

                <asp:Label ID="Label1" runat="server" ForeColor="White" Text="Add New Type Of Deliver" 
                    Font-Bold="True" ></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="style6" style="width: 12%">
                &nbsp;</td>
            <td class="style6">
                Type Of Deliver Name</td>
            <td>
                <asp:TextBox ID="txtDTName" runat="server" Width="170px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvDName" runat="server" 
                    ControlToValidate="txtDTName" 
                    ErrorMessage="Type of deliver name can not be blank" Font-Size="Large" 
                    ForeColor="Red">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style6" style="width: 12%">
                &nbsp;</td>
            <td class="style6">
                Description</td>
            <td>
                <asp:TextBox ID="txtDTDes" runat="server" Width="170px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style6" style="width: 12%">
                &nbsp;</td>
            <td class="style6">
                Type Of Deliver Charge</td>
            <td>
                <asp:TextBox ID="txtDTCharge" runat="server" Width="170px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvDPrice" runat="server" 
                    ControlToValidate="txtDTCharge" 
                    ErrorMessage="Type of deliver price can not be blank" Font-Size="Large" 
                    ForeColor="Red">*</asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="revDPrice" runat="server" 
                    ControlToValidate="txtDTCharge" 
                    ErrorMessage="Type of deliver price contains integers or decimals only" 
                    Font-Size="Large" ForeColor="Red" 
                    ValidationExpression="^[.][0-9]+$|[0-9]*[.]*[0-9]+$">*</asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td class="style6" style="width: 12%">
                &nbsp;</td>
            <td class="style6" colspan="2">
                <asp:ValidationSummary ID="ValidationSummary1" runat="server" ForeColor="Red" />
            </td>
        </tr>
        <tr>
            <td class="style3" style="width: 12%">
                &nbsp;</td>
            <td class="style5" colspan="2">
                <asp:ImageButton ID="imgbAdd" runat="server" 
                    ImageUrl="~/images/img_Add.png" onclick="imgbAdd_Click" />
                <asp:ImageButton ID="imgbReset" runat="server" 
                    ImageUrl="~/images/img_Reset.png" CausesValidation="False" />
                <asp:ImageButton ID="imgbCancel" runat="server" 
                    ImageUrl="~/images/img_Cancel.png" CausesValidation="False" />
            </td>
        </tr>
    </table>
</asp:Content>

